﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace HengTong.DataAccess.Migrations
{
    /// <inheritdoc />
    public partial class 站点设置增加微信app端参数 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "WechatAppAppId",
                table: "SysSiteConfig",
                type: "nvarchar(128)",
                maxLength: 128,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "WechatAppRedirectUri",
                table: "SysSiteConfig",
                type: "nvarchar(256)",
                maxLength: 256,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "WechatAppSecret",
                table: "SysSiteConfig",
                type: "nvarchar(128)",
                maxLength: 128,
                nullable: true);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "WechatAppAppId",
                table: "SysSiteConfig");

            migrationBuilder.DropColumn(
                name: "WechatAppRedirectUri",
                table: "SysSiteConfig");

            migrationBuilder.DropColumn(
                name: "WechatAppSecret",
                table: "SysSiteConfig");
        }
    }
}
